package com.atguigu.spring6.resource;

import com.atguigu.spring6.config.config;
import com.atguigu.spring6.resource.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUserAnno {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(config.class);
        UserController userController = context.getBean("myUserController", UserController.class);
        userController.addUser();
    }
}
